<template>
  <sweet-table v-sweetLoading="loading" :data="tableData" style="width: 100%" sweet-loading-show-close-time="3000">
    <sweet-table-column prop="date" label="Date" width="180" />
    <sweet-table-column prop="name" label="Name" width="180" />
    <sweet-table-column prop="address" label="Address" />
  </sweet-table>
</template>

<script>
export default {
  data() {
    return {
      loading: true,
      tableData: [
        {
          date: '2016-05-02',
          name: 'John Smith',
          address: 'No.1518,  Jinshajiang Road, Putuo District'
        },
        {
          date: '2016-05-04',
          name: 'John Smith',
          address: 'No.1518,  Jinshajiang Road, Putuo District'
        },
        {
          date: '2016-05-01',
          name: 'John Smith',
          address: 'No.1518,  Jinshajiang Road, Putuo District'
        },
        {
          date: '2016-05-01',
          name: 'John Smith',
          address: 'No.1518,  Jinshajiang Road, Putuo District'
        }
      ]
    };
  },
  mounted() {
    setTimeout(() => {
      this.$socPost()
      this.loading = false;
    }, 5000)
  }
};
</script>

<style>
body {
  margin: 0;
}
</style>